package cuit.epoch.pymjl.security.entity.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author Pymjl
 * @version 1.0
 * @date 2022/8/20 17:42
 **/
@Data
public class UserDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Length(min = 6, max = 255, message = "密码长度不得小于6位")
    private String password;
    @Email(message = "邮箱格式不正确")
    private String email;
    @NotBlank(message = "电话不能为空")
    private String phone;
}
